package com.atguigu.spzx.user.api;

import com.atguigu.spyx.model.common.Result;
import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.h5.UserAddress;
import com.atguigu.spzx.user.api.fallback.UserClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author LT
 * @create 2023-11-21-20:27
 */
@FeignClient(value = "service-user" , fallback = UserClientFallback.class)
public interface UserClient {

    @GetMapping("/api/user/userAddress/findUserAddressById/{id}")
    public Result<UserAddress> findUserAddressById(@PathVariable("id")Long id);
}
